/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2022-04-21 13:44:13
 * @LastEditors: Sam
 * @LastEditTime: 2022-04-23 15:56:24
 */

import request from '@/utils/request'

/**
 * 列表
 * @param params
 * @returns {AxiosPromise}
 */
export function list(params) {
  return request({
    url: '/admin/plugin_index',
    method: 'get',
    params
  })
}


/**
 * 列表
 * @param params
 * @returns {AxiosPromise}
 */
 export function install(name) {
  return request({
    url: '/admin/plugin_install',
    method: 'post',
    data: {
      'name': name
    }
  })
}





